<!DOCTYPE html>
<html lang="{{ app()->getLocale() }}">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- CSRF Token -->
    <meta name="csrf-token" content="{{ csrf_token() }}">
    <title>{{ config('app.name', 'Lara2vel') }}</title>
    <!-- Styles -->
    <link rel="stylesheet" href="{{env('APP_ROOT')}}/assets/bootstrap/css/bootstrap.min.css">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="{{env('APP_ROOT')}}/assets/font-awesome/css/font-awesome.min.css">

    <!-- Theme style -->
    <link rel="stylesheet" href="{{env('APP_ROOT')}}/assets/adminlte/css/AdminLTE.min.css">
    <!-- AdminLTE Skins. We have chosen the skin-blue for this starter
          page. However, you can choose any other skin. Make sure you
          apply the skin class to the body tag so the changes take effect. -->
    <link rel="stylesheet" href="{{env('APP_ROOT')}}/assets/adminlte/css/skins/skin-blue.min.css">
    <link rel="stylesheet" href="{{env('APP_ROOT')}}/assets/bootstrap/css/dataTables.bootstrap.min.css">
    <link rel="stylesheet" href="{{env('APP_ROOT')}}/assets/bootstrap/css/daterangepicker.css">
    <link rel="stylesheet" href="{{env('APP_ROOT')}}/assets/bootstrap/css/bootstrap-datepicker.min.css">
    <link rel="stylesheet" href="{{env('APP_ROOT')}}/css/common.css">
    <link rel="stylesheet" href="{{route('admin.access.permission.getNode')}}?v={{session()->getId()}}">
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="{{env('APP_ROOT')}}/js/html5shiv.min.js"></script>
    <script src="{{env('APP_ROOT')}}/js/respond.min.js"></script>
    <![endif]-->
    <!-- jQuery 3 -->
<!--    <script src="{{env('APP_ROOT')}}/assets/jquery/jquery.min.js"></script>-->
    <script src="{{env('APP_ROOT')}}/assets/jquery/jquery.min.js" id="receiveUrl" data-rule="/assets/jquery/jquery.min.js"></script>
    <script>
        var reg = new RegExp('(.*)' + $('#receiveUrl').attr('data-rule') + ".*");
        var str = $('#receiveUrl').prop('src');
        var newStr = str.replace(reg, "$1");
        window.HNA = {
            URL: newStr
        };
        $(function () {
            $.ajaxSetup({
                headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')}
            });
        });

       //请求验证token
       function getToken (){
           $.ajax({
               url:"{{route('admin.access.permission.getToken')}}",
               type:"GET",
               success:function(data){
                   if(data.code===0){

                       $('meta[name="csrf-token"]').attr('content',data.content);
                   } else {
                       layer.msg(data.msg);
                   }
               }
           });
       }
    </script>
<!--    <link href="{{ asset('css/app.css') }}" rel="stylesheet">-->
</head>
<body class="hold-transition skin-blue sidebar-mini fixed">
    <div class="wrapper">
        @include('backend.common.header')
        @include('backend.common.siderbar')
        <div class="content-wrapper">
            <!-- Content Header (Page header) -->
            @include('backend.common.rightnav')
            @yield('content')
        </div>
        <!-- /.content-wrapper -->
        @include('backend.common.footer')
    </div>
    <!-- ./wrapper -->
    <!-- Scripts -->
    <!-- REQUIRED JS SCRIPTS -->
    <!-- Bootstrap 3.3.7 -->
    <script src="{{env('APP_ROOT')}}/assets/bootstrap/js/bootstrap.min.js"></script>
    <!-- AdminLTE App -->
    <script src="{{env('APP_ROOT')}}/assets/adminlte/js/adminlte.js"></script>
    <!-- SlimScroll -->
    <script src="{{env('APP_ROOT')}}/assets/jquery-slimscroll/jquery.slimscroll.min.js"></script>
    <script src="{{env('APP_ROOT')}}/assets/bootstrap/js/jquery.dataTables.min.js"></script>
    <script src="{{env('APP_ROOT')}}/assets/bootstrap/js/dataTables.bootstrap.min.js"></script>
    <script src="{{env('APP_ROOT')}}/assets/bootstrap/js/moment.js"></script>
    <script src="{{env('APP_ROOT')}}/assets/bootstrap/js/daterangepicker.js"></script>
    <script src="{{env('APP_ROOT')}}/assets/bootstrap/js/bootstrap-datepicker.min.js"></script>
    <!--<script src="{{ asset('js/app.js') }}"></script>-->
    @yield('javascript-end')
</body>
</html>
